package com.xlh.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

public class ExitsTitleBean implements Serializable , Parcelable{

	private static final long serialVersionUID = 1L;
	/**
	 * 决定了TITLE高度
	 */
	private int height;

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	private String exitsKey;

	public String getExitsKey() {
		return exitsKey;
	}

	public void setExitsKey(String exitsKey) {
		this.exitsKey = exitsKey;
	}

	public ExitsTitleBean() {

		// TODO Auto-generated constructor stub
	}

	private boolean p;
	private int id;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean getP() {
		return p;
	}

	public void setP(boolean p) {
		this.p = p;
	}

	public ExitsTitleBean(Parcel source) {
		// TODO Auto-generated constructor stub
		this.mText = source.readString();
		this.mAction = source.readString();
	}

		private String mText;
		private String mAction;

	public String getmAction() {
		return mAction;
	}

	public String getmText() {
		return mText;
	}

	public void setmAction(String mAction) {
		this.mAction = mAction;
	}

	public void setmText(String mText) {
		this.mText = mText;
	}

	/**
	 * 为了不影响其他的控件显示新增HTML属性
	 * by fang
	 */
	public String mHtml;

	public String getmHtml() {
		return mHtml;
	}

	public void setmHtml(String mHtml) {
		this.mHtml = mHtml;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(this.mText);
		dest.writeString(this.mAction);
	}

	public static final Creator<ExitsTitleBean> CREATOR = new Creator<ExitsTitleBean>() {
		
		@Override
		public ExitsTitleBean[] newArray(int size) {
			// TODO Auto-generated method stub
			return new ExitsTitleBean[size];
		}

		@Override
		public ExitsTitleBean createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new ExitsTitleBean(source);
		}
	};
	
	

	@Override
	public String toString() {
		return "TitleBean [p=" + p + ", mText=" + mText + ", mAction=" + mAction + ", color=" + color + "]";
	}

	private String color;
	
	public void setColor(String color) {
		// TODO Auto-generated method stub
		this.color = color;
	}
	
	public String getColor() {
		return color;
	}
}
